include ../../include/Makefile.inc

CFLAGS = -Wall -Wextra -Wno-implicit -I$(INC_PATH)
SRC := main.c
OBJS := main.o
TARGET = libmain.a

#all:$(TARGET)

$(TARGET):$(OBJS)
	@$(AR) rc $@ $(OBJS)
	@cp -f $(TARGET) ../../lib

$(OBJS): %.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@

.PHONY : clean 	lint
clean:
	rm -f $(TARGET)
	rm -f $(OBJS)
	rm -f ../../lib/$(TARGET)

lint:
	-lint $(SRC) -I$(INC_PATH)
